import MessageBox from "./MessageBox";

const obj = {}

obj.install = function (vue) {
    const MessageBoxConstructor = vue.extend(MessageBox)
    const messageBox = new MessageBoxConstructor()
    messageBox.$mount(document.createElement('div'))
    document.body.appendChild(messageBox.$el)
    vue.prototype.$messageBox = messageBox
  }

export default obj
